:root {
  --primary-color: #31c27c;
  --text-main: #000;
  --text-secondary: #999;
  --bg-white: #fff;
  --spacing: 20px;
}

body {
  margin: 0;
  background: #f5f5f5;
  font-family: Microsoft Yahei;
  font-size: 14px;
  min-width: 1000px;
}

a {
  text-decoration: none;
  color: var(--text-main);
}

header {
  height: 90px;
  background: white;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner,
main {
  width: 1200px;
  margin: auto;
}

main > section {
  margin-bottom: 60px;
  background: var(--bg-white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

main > section h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 8px; 
}


.tag-list {
  margin-bottom: 30px;
  overflow: hidden;
  text-align: center;
}

.tag-item,
.tag-active {
  display: inline-block;
  padding: 6px 16px;
  margin-right: 15px;
  line-height: 26px;
  transition: all 0.3s;
  font-size: 14px;
}

.tag-item {
  color: var(--text-secondary);
  background: #fff; 
}

.tag-active {
  color: white;
  background: var(--primary-color);
}

.tag-item:not(.tag-active):hover {
  color: var(--primary-color);
  background: #f0f9f5;
}


.nowrap {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.playlist {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px 30px;
  margin-bottom: 15px;
}

.cover-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  aspect-ratio: 1/1;
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.75s;
  transform-origin: center;
}

.cover-mask {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: #000;
  opacity: 0;
  transition: all 0.5s;
}

.cover-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7); 
  width: 40px;
  height: 40px;
  opacity: 0;
  transition: all 0.5s;
  transform-origin: center; 
}

.cover-wrap:hover .cover-mask {
  opacity: 0.2;
}

.cover-wrap:hover .cover-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1); /
}

.cover-wrap:hover .cover-img {
  transform: scale(1.07);
}

.album-title {
  font-weight: 500;
  margin-bottom: 8px;
  transition: color 0.3s;
  display: block;
  font-size: 14px;
}

.album-title:hover {
  color: var(--primary-color);
}

.album-author {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 5px;
  display: block;
  font-size: 12px;
}

.album-author:hover {
  color: var(--primary-color);
}

.album-time {
  color: var(--text-secondary);
  font-size: 12px;
}


.song-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.song-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.3s;
}

.song-item:hover {
  background: #f9f9f9;
}

.song-img {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  margin-right: 15px;
}

.song-info {
  flex: 1;
  min-width: 0;
}

.song-title {
  font-weight: 500;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.song-singer {
  color: var(--text-secondary);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-time {
  color: var(--text-secondary);
  font-size: 12px;
  margin-left: 20px;
}


.page {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
}

.page-item {
  display: inline-block;
  color: #a2a2a2;
  line-height: 50px;
  padding: 0 20px;
  margin: 0 5px;
  font-size: 16px;
  border-radius: 4px;
  transition: all 0.3s;
}

.page-current,
.page-item:not(.page-more):hover {
  background: var(--primary-color);
  color: white;
}

footer {
  margin-top: 60px;
  background: #333;
  height: 100px;
}
    